package thread;

public class demo7 {

    public static void func(){
        long a = 0;
        long beg = System.currentTimeMillis();
        for (long i = 0; i <10_0000_0000 ; i++) {
            a++;
        }

        long b = 0;
        for (long i = 0; i <10_0000_0000 ; i++) {
            b++;
        }
        long end = System.currentTimeMillis();
        System.out.println("耗时："+(end - beg)+"毫秒");

    }


    public static void main(String[] args) {
        func();
    }
}
